cmake_minimum_required(VERSION 3.17)
project(glew)

set(CMAKE_CXX_STANDARD 14)

#add_definitions("-D _DEBUG_" )
add_executable(glew WIN32 src/WinMain.cpp src/GLGame.cpp
        src/GLSceneManager.cpp src/GLGraphics.cpp
        src/GLMesh.cpp src/GLCamera.cpp)

message(${SDL_LIB})
target_link_libraries( glew
        #${SDL_LIB}
        "sdl_demo1_lib.lib"
        "Winmm.lib"
        "framework.lib"
        "glm_static.lib"
        "glfw3d.lib"
        #"glew32sd.lib"
        "FreeImage.lib"
        "opengl32.lib"
        )

#H:\tmp\wxWidgets-3.1.3\x86_build\gdi\vc_dll
#target_link_libraries(windows  )

target_include_directories(glew PUBLIC
        "${gdi_include}"
        "${core_include}"
        "${engine_include}"
        "${game_include}"
        ${SDL_INCLUDE_LOCATION}
        "H:/init/git_oschina/ogl-samples/framework/"
        "H:/init/git_oschina/libs/"
        #H:\init\git_oschina\libs\glfw-3.1.1\include\GLFW\glfw3.h
        "H:/init/git_oschina/libs/glfw-3.1.1/include/"
        "H:/init/git_oschina/libs/glew-2.1.0/include/"
        "H:/init/git_oschina/libs/gli/"
        )

target_link_directories( glew PUBLIC
        ${SDL_LIB_LOCATION}
        "../cmake-build-debug/lib/"
        "E:\\tmp\\ogl-samples\\framework\\Unicode_build\\framework\\Debug_x86"
        "H:\\init\\git_oschina\\libs\\glm\\cmake-build-debug"
        "H:\\init\\git_oschina\\libs\\glfw-3.1.1\\Unicode_build\\glfw\\Debug_x86"
        "H:\\init\\git_oschina\\libs\\glew-2.1.0\\build\\vc12\\Unicode_build\\glew_static\\Debug_x86"
        "E:/tmp/ogl-samples/external/FreeImage-3.15.4/win32"
        )